package com.suredy.app.testItem.model;

import java.util.List;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToMany;
import javax.persistence.Table;

import com.suredy.app.testType.model.TestType;
import com.suredy.core.model.BaseModel;

@Entity
@Table(name = "T_APP_TESTITEM")
public class TestItem extends BaseModel{
	private String name;
	private String code;
	private String description;
	
	@ManyToMany(fetch = FetchType.LAZY, mappedBy = "testItems")
	private List<TestType> testType;
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	
	public String getCode() {
		return code;
	}

	
	public void setCode(String code) {
		this.code = code;
	}

	
	
	public String getDescription() {
		return description;
	}

	
	public void setDescription(String description) {
		this.description = description;
	}

	public List<TestType> getTestType() {
		return testType;
	}

	
	public void setTestType(List<TestType> testType) {
		this.testType = testType;
	}
	

}
